#include "Sniper.h"

Sniper::Sniper()
	:GameObject()
{

}


Sniper::Sniper(int id, float posX, float posY, int width, int height)
	:GameObject(id,posX,posY,width,height)
{
	setGameObID(OB_SNIPER);
	init();
}

Sniper::~Sniper()
{

}

void Sniper::init()
{
	m_sprite = ResourceManager::getInstance()->cS_sniper;
}

void Sniper::update(float time)
{
	updateVec(time);
	moveEnity();
	setAnimation();
	setRectCollsion();
	
}

void Sniper::setAnimation()
{

}

void Sniper::setRectCollsion()
{

}

void Sniper::draw()
{
	m_sprite->update();
	D3DXVECTOR2 pos = m_camera->getPointTransform(m_posX, m_posY);
	m_sprite->draw(m_spriteHandler, pos.x, pos.y, false);
}

void Sniper::destroy()
{

}
